import request from "./request"

const noticeApi = {
    // 分组分页列表
    noticePageList: (data) => {
        return request.post('/admin/content/notice/pageList', data)
    },
    
    // 详情
    detail: (id) => {
        return request.post('/admin/content/notice/detail', {id})
    },

    // 新增
    addNotice: (data) => {
        return request.post('/admin/content/notice/add', data)
    },
    // 更新
    updateNotice: (data) => {
        return request.post('/admin/content/notice/update', data)
    },

    // 删除
    delNotice: (ids) => {
        return request.post('/admin/content/notice/del', {
            ids
        })
    },


}

export default noticeApi